﻿namespace Web.Control.WWW.Answers
{
    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using Lx.Web.Common.ControlsUI;

    /// <summary>
    /// 添加问答页
    /// </summary>
    public class Ask : BaseControl
    {
        protected string ctn="";
        protected override void OnLoad(EventArgs e)
        {
            if (!string.IsNullOrEmpty(Request["ctn"]))
            {
                ctn = Request["ctn"];
            }
            if (HttpContext.Current.User.Identity.Name == "")
            {
                Page.Response.Redirect("/user/login.htm?ReturnUrl=" + Page.Request.Url.AbsoluteUri);
                return;
            }
        }
    }
}
